package com.songlanyun.modules.shop.model.dto;

import com.songlanyun.common.drive.ValueObject;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;

@Data
public class ShopRateDTO implements ValueObject {

    private Long shopId;
    /**
     * 提现的手续费率
     */
    @DecimalMin(value = "0.01", message = "提现的手续费率最小是0.01")
    @DecimalMax(value = "100.0", message = "折扣最小是100.0")
    private BigDecimal commissionRate;


}
